<?php

/**
 * Description of mobilehotkeyword
 *
 * @author libaoling
 * @time 2014-8-19
 */
class MobilehotkeywordModel extends BaseModel
{
    var $table = 'mobile_hotkeyword';
    var $prikey = 'keyword_id';
    var $_name = 'mobilehotkeyword';
    
    var $_autov = array(
        'keyword_name' => array(
            'required'  => true,
            'filter'    => 'trim',
        ),
        'link' => array(
            'required'  => true,
            'filter'    => 'trim',
        ),
        'recom_id' => array(
            'required'  => true,
            'filter'    => 'intval',
        ),
    );
    
    /* 清除缓存 */

    function clear_template_cache()
    {
        $cache_server = & cache_server();
        $keys = array(
            'wap_index_template'
        );
        foreach ($keys as $key)
        {
            $cache_server->delete($key);
        }
    }
}
